/*
 * @Author: yxfan
 * @Date: 2024-12-16 19:15:35
 * @LastEditTime: 2024-12-16 19:19:59
 * @FilePath: /umi-demo/src/pages/test/redux/store.js
 * @Description:
 */
import { create } from 'zustand';

export const useBearStore = create((set) => ({
    bears: 0,
    increasePopulation: () => set((state) => ({ bears: state.bears + 1 })),
    removeAllBears: () => set({ bears: 0 }),
}));
